package zhu.yu.OOP_Extends.区分子类方法中重名的三种变量;

public class Zi extends Fu {
    int num = 10;

    public void method() {
        int num = 30;
        System.out.println("本类局部变量" + num);
        System.out.println("本类成员变量" + this.num);
        System.out.println("父类成员变量" + super.num);
    }

    public void methodZi() {
        System.out.println("子类方法执行");
    }

    public void method1() {
        System.out.println("子类重名方法method1");
    }
}
